package com.cheng.dao;

import com.cheng.pojo.Order;
import com.cheng.pojo.Root;
import com.cheng.pojo.User;
import com.cheng.pojo.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RootMapper {


    //登录
    Root selectRoot(@Param("username")String username,@Param("password") String password);

    //查询订单
    List<Order> selectAllOrder();

    //查询订单
    List<Users> queryuser();

    //删除用户
    int deleteuser(@Param("name")String name);

    //查询订单
    List<User> queryusers();

    //删除用户
    int deleteusers(@Param("userName")String userName);

}
